package com.lwj.vo.configuration;

public class PermissionCheckVo {
    /**1:本级有权限  0：本级没权限*/
    private String currentLevel;
    /**1:下级有权限  0：下级没权限*/
    private String nextLevel;
    /**校验权限的部门id*/
    private String target;
    /**角色所在部门id*/
    private String departmentId;
    /**角色所在部门子父id链*/

    private String targetPath;
    /**接口权限code*/
    private String permissionCode;


    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public String getCurrentLevel() {
        return currentLevel;
    }

    public void setCurrentLevel(String currentLevel) {
        this.currentLevel = currentLevel;
    }

    public String getNextLevel() {
        return nextLevel;
    }

    public void setNextLevel(String nextLevel) {
        this.nextLevel = nextLevel;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }
    public String excludeCurrentLevel(){
        if("0".equals(this.currentLevel)){
            return this.departmentId;
        }else {
            return "";
        }
    }

    public String excludeNextLevel(){
        if("0".equals(this.nextLevel)){
            return this.departmentId;
        }else {
            return "";
        }
    }
}
